<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>它是如何工作的</title>
    <link rel="stylesheet" href="../../lib/bootstrap3/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../lib/bootstrap3/css/dashboard.css">
    <script src="../../lib/angularjs/angular.js"></script>
</head>
<body>
    <div class="panel panel-primary">
        <div class="panel-heading">不同状态触发的事件列表</div>
        <div class="panel-body">
            当动画在一个元素产生时，我们想要检测DOM操作什么时候发生，可以在$animate服务上注册一个事件。事件如下：
            element.on('$animate:before', function(evt, animationDetails) {});
            element.on('$animate:after', function(evt, animationDetails) {});
        </div>
    </div>
</body>
</html>